package createpattern.prototype;

/**
 * @author seer
 * @date 2018/2/7 10:57
 */
public class Rectangle extends Shape {

    public Rectangle() {
        type = "Rectangle";
    }

    @Override
    void draw() {
        System.out.printf("this message from %s[%s]#%s\n", Thread.currentThread().getStackTrace()[1].getClassName(), Thread.currentThread().getStackTrace()[1].getLineNumber(), Thread.currentThread().getStackTrace()[1].getMethodName());
    }
}
